<template>
  <ul class="accordion" ref="accordion">
    <slot />
  </ul>
</template>

<script>
export default {
  name: "Timeline",
  props: {},
  mounted() {}
};
</script>

<style>
.accordion {
  padding: 0;
  position: relative;
  list-style: none;
  -webkit-font-smoothing: antialiased;
  margin: 0px 20px;
}

.accordion:after {
  position: absolute;
  content: "";
  left: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background-color: #aaa;
  z-index: 1;
}

.accordion-item {
  position: relative;
  margin: 0 0 0 55px;
  padding-bottom: 1.5em;
  width: 70%;
  overflow: hidden;
}
.accordion-item:last-child {
  border-bottom: none;
}
.accordion-circle {
  position: absolute;
  top: 0.28em;
  left: -61px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid #ccc;
  background-color: #ccc;
  z-index: 2;
  box-sizing: content-box;
  background-color: #fff;
  display: none;
}
.box_main_accordion .el-icon-location {
  font-size: 15px;
  color: #409eff;
}
.box_main_accordion .el-icon-circle-check {
  font-size: 28px;
  color: #409eff;
}
.accordion-title {
  position: relative;
  display: inline-block;
  margin: -0.15em 0 0px 40px;
  min-height: 30px;
  width: 80%;
  display: flex;
  align-items: center;
}
.accordion-title:not(:first-child) {
  margin-top: 28px;
}
.accordion-title-circle {
  left: -54px;
  top: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  border-radius: 50%;
  overflow: hidden;
}
</style>